#ifndef TOOLBUTTON_H
#define TOOLBUTTON_H

#include <QToolButton>

class ToolBase;
class ToolBar;

class QUINCE_GUI_EXPORT ToolButton : public QToolButton
{
    Q_OBJECT
public:
    ToolButton(QWidget *parent, ToolBase * tool);

    virtual ToolBase * tool() const { return m_tool; }
protected:
    void setTool(ToolBase * tool)
    {
        m_tool = tool;
    }

private:
    ToolBase * m_tool;
};

#endif // TOOLBUTTON_H
